﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CROSLAND.BL.BE;
using CROSLAND.DL.DALCF;

namespace CROSLAND.BL.BC
{
    public class SistemaSAPBC
    {
        #region Singleton
        private SistemaSAPBC() { }
        private static SistemaSAPBC _instance = null;
        public static SistemaSAPBC Instance
        {
            get { return (_instance == null) ? _instance = new SistemaSAPBC() : _instance; }
        }
        #endregion

        public List<SistemaSAPBE> listar()
        {
            return DaoFactory.SistemaSAPDALC.listar();
        }

        public void agregar(SistemaSAPBE pObjSistemaSAP)
        {
            DaoFactory.SistemaSAPDALC.agregar(pObjSistemaSAP);
        }

        public void eliminar(int pSistema_id)
        {
            DaoFactory.SistemaSAPDALC.eliminar(pSistema_id);
        }

        public SistemaSAPBE leer(int pSistema_id)
        {
            return DaoFactory.SistemaSAPDALC.leer(pSistema_id);
        }

        public bool actualizar(SistemaSAPBE sistemaSAPBE)
        {
            return DaoFactory.SistemaSAPDALC.actualizar(sistemaSAPBE);
        }
    }
}
